<!-- 评论管理页面 -->
<style>
  .user_search {
    margin: 8px -40px 0 5px;
    font-weight: bold;
  }
  .user_search-a{
    margin-top: 8px;
    margin-left: -15px;
    font-size: 13px;
    color: #2cb5ac;
  }
  .user_search-a:hover{
    cursor: pointer;
  }
</style>
<div class="user_container">
  <div class="row">
  	<div class="col-md-1 user_search">
  		&nbsp;&nbsp;&nbsp;关键字
    </div>
    
  	<div class="col-md-2">
  		 <input type="text" class="form-control user_search_text" id="exampleInputName2" >
    </div>
    <div class="col-md-1 user_search-a">
  		搜索
  	</div>
    <div class="col-md-1 user_search">
      审核状态
  	</div>
  	<div class="col-md-2">
  		<select class="form-control user_search_text" >
		       <option class="val" >请选择</option>
		       <option class="val" >待审核</option>
		       <option class="val" >审核通过</option>
		       <option class="val" >审核不通过</option>
		  </select>
  	</div>
  	
  </div>
  <div class="row">
  	<table class="table table-hover">
	 	<thead>
	 		<th>序号</th>
	 		<th>评论内容</th>
	 		<th>评论日期</th>
	 		<th>操作</th>
	 	</thead>
	 	<tbody>
	 		<tr>
	 			<!-- <td>1</td>
	 			<td>usernaem</td>
	 			<td>name</td>
	 			<td>role</td>
	 			<td>gender</td>
	 			<td>status</td>
	 			<td>18777772222</td>
	 			<td>
	 			 -->
	 			</td>
	 		</tr>
	 		
	 	</tbody>
  </table>
  
  <script>
    //请求信息
    $.ajax({
      url:"http://182.92.164.74:8002/comment/pageQuery?page=1&pageSize=10",
      type:"GET",
      headers:{
        "Authorization":sessionStorage.getItem("token")
      },
      success:function(data){
        //插入表格信息
        var user=data.data.list;
        user.forEach((item)=>{
          $("tbody").append(`
          <tr>
            <td>`+item.id+`</td>
            <td>`+item.content+`</td>
            <td>`+item.commentTime+`</td>
            <td>`+item.status+`</td>
            <td>
              <span>删除</span>
              <span>通过</span>
              <span>不通过</span>
             
            </td>
        
        </tr>
          `)
        })
      }
    })
  </script>